import Vue from 'vue'
import vuex from 'vuex'
Vue.use(vuex);

export default new vuex.Store({
  state:{
    coordinate:'122',
    address:'',
    emergencyInformation:[
      {
        title: '应急资料',
        index: '1',
        router: '',
        children: [
          {
            title: '法律法规',
            index: '1-1',
            router: ''
          }, {
            title: '应急专家',
            index: '1-2',
            router: ''
          }, {
            title: '标准规范',
            index: '1-3',
            router: ''
          }, {
            title: '通讯录管理',
            index: '1-4',
            router: ''
          }, {
            title: '危化品知识',
            index: '1-5',
            router: ''
          }, {
            title: '事故案例',
            index: '1-6',
            router: ''
          }
        ]
      }, {
        title: '区域应急预案',
        index: '2',
        router: '',
        children: [
          {
            title: '区域组织机构管理',
            index: '1-1',
            router: ''
          },{
            title: '区域应急调度预案',
            index: '1-2',
            router: ''
          }
        ]
      }, {
        title: '救援队伍管理',
        index: '3',
        router: '',
        children: [
          {
            title: '各队伍信息管理',
            index: '1-1',
            router: ''
          },{
            title: '各队伍人员信息',
            index: '1-2',
            router: ''
          },{
            title: '各队伍训练信息',
            index: '1-3',
            router: ''
          },{
            title: '各队伍救援装备信息',
            index: '1-4',
            router: ''
          },{
            title: '各队伍救援物资信息',
            index: '1-5',
            router: ''
          },{
            title: '各队伍救援预案备案',
            index: '1-6',
            router: ''
          },{
            title: '呼吸器分配信息',
            index: '1-7',
            router: ''
          },{
            title: '呼吸器信息管理',
            index: '1-8',
            router: ''
          }
        ]
      }, {
        title: '生产单位管理',
        index: '4',
        router: '',
        children: [
          {
            title: '各单位基本信息',
            index: '1-1',
            router: ''
          },{
            title: '各单位应急预案',
            index: '1-2',
            router: ''
          },{
            title: '各单位风险监测',
            index: '1-3',
            router: ''
          },{
            title: '各单位培训演练',
            index: '1-4',
            router: ''
          }
        ]
      }
    ],
    emergencyDispatch:[
      {
        title: '应急值守',
        index: '1',
        router: '',
        children: [
          {
            title: '事故预警与接警',
            index: '1-1',
            router: ''
          }, {
            title: '启动数字化预案',
            index: '1-2',
            router: ''
          }, {
            title: '响应分级',
            index: '1-3',
            router: ''
          }, {
            title: '事故报送',
            index: '1-4',
            router: ''
          }
        ]
      }, {
        title: '应急处置',
        index: '2',
        router: '',
        children: [
          {
            title: '多方会商',
            index: '1-1',
            router: ''
          },{
            title: '救援分析调度',
            index: '1-2',
            router: ''
          },{
            title: '公众信息发布管理',
            index: '1-3',
            router: ''
          }
        ]
      }, {
        title: '应急指挥',
        index: '3',
        router: '',
        children: [
          {
            title: '远程指挥',
            index: '1-1',
            router: ''
          },{
            title: '地面指挥',
            index: '1-2',
            router: ''
          },{
            title: '井下指挥',
            index: '1-3',
            router: ''
          },{
            title: '应急联动指挥室',
            index: '1-4',
            router: ''
          },{
            title: '救援进度管理',
            index: '1-5',
            router: ''
          }
        ]
      }, {
        title: '后期处置',
        index: '4',
        router: '',
        children: [
          {
            title: '结束救援',
            index: '1-1',
            router: ''
          },{
            title: '事故报告',
            index: '1-2',
            router: '',
            children: [
              {
                title: '事故信息',
                index: '1-2-1',
                router: ''
              },{
                title: '调查计划',
                index: '1-2-2',
                router: ''
              },{
                title: '调查取证',
                index: '1-2-3',
                router: ''
              },{
                title: '致因分析',
                index: '1-2-4',
                router: ''
              },{
                title: '违法分析',
                index: '1-2-5',
                router: ''
              },{
                title: '调查结果',
                index: '1-2-6',
                router: ''
              }
            ]
          },{
            title: '恢复计划',
            index: '1-3',
            router: ''
          },{
            title: '灾后救援评估',
            index: '1-4',
            router: ''
          }
        ]
      }
    ],
    systemManagement:[
      {
        title: '地图管理',
        index: '1',
        router: '',
      }, {
        title: '角色管理',
        index: '2',
        router: '',
      }, {
        title: '数据字典',
        index: '3',
        router: '',
      }, {
        title: '字典类型',
        index: '4',
        router: '',
      }, {
        title: '数据更新',
        index: '5',
        router: '',
      }, {
        title: '平台邮箱管理',
        index: '6',
        router: '',
        children: [
          {
            title: '邮箱配置',
            index: '1-1',
            router: ''
          },{
            title: '发件箱',
            index: '1-2',
            router: ''
          }
        ]
      }, {
        title: '流程管理',
        index: '7',
        router: '',
        children: [
          {
            title: '流程模型',
            index: '1-1',
            router: ''
          },{
            title: '流程部署',
            index: '1-2',
            router: ''
          },
          {
            title: '我的审批任务',
            index: '1-3',
            router: ''
          }
        ]
      },{
        title: '救护队账户注册',
        index: '8',
        router: '',
      },{
        title: '用户管理',
        index: '9',
        router: '',
      },{
        title: '个性化设置管理',
        index: '10',
        router: '',
      }
    ],
    navData:this.emergencyInformation
  },
  mutations:{
    setCoordinate(state ,  coordinate) {
      state.coordinate = coordinate
    },
    setAddress(state ,  address) {
      state.address = address
    },

  }
})
